package com.example.xiaosen.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: zhouxj@ferrotec.com.cn
 * @version: v1.0
 * @Date: 2025/5/14 13:13
 * @Description: 文件上传响应结果
 */
@Data
@NoArgsConstructor
public class Result {
    private Integer ok;
    private String msg;
    private Result(Integer ok, String msg) {
        this.ok = ok;
        this.msg = msg;
    }
    public static Result ok() {
        return new Result(1, "ok");
    }
    public static Result fail(String msg) {
        return new Result(0, msg);
    }
}
